﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.Core
{
    /// <summary>
    /// 文件上传结果
    /// </summary>
    [Serializable]
    public class UpLoadResult
    {
        /// <summary>
        /// 文件上传结果：0=上传失败；1=上传成功；
        /// </summary>
        public int Msg { set; get; }

        /// <summary>
        /// 文件上传提示消息
        /// </summary>
        public string MsgBox { set; get; }

        /// <summary>
        /// 原始文件名称
        /// </summary>
        public string SourceFileName { set; get; }

        /// <summary>
        /// 储存文件名称
        /// </summary>
        public string FileName { set; get; }

        /// <summary>
        /// 文件拓展名
        /// </summary>
        public string ExtensionName { set; get; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string FileType { set; get; }

        /// <summary>
        /// 文件访问地址(相对)
        /// </summary>
        public string Url { set; get; }

        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { set; get; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public decimal FileSize { set; get; }
        /// <summary>
        /// 文件创建时间
        /// </summary>
        public string FileTime { get; set; }
    }
}
